package ru.kreda.webapp.client.data;

import com.extjs.gxt.ui.client.binding.Converter;

/**
 * GXT converter for Integer.
 */
public class IntegerConverter extends Converter {

	@Override
	public Object convertFieldValue(Object value) {
		try {
			return Integer.parseInt(value.toString().trim());
		} catch (Exception e) {
			return null;
		}
	}

}
